home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
acehtml
/
acehtmlfreeware.exe
/
scriptdef
/
Slide-In Menu Bar.sd
< prev
next >
Wrap
INI File
|
2006-09-13
|
3KB
|
142 lines
[SUBJECT]
Description=Slide-In menu bar Script
ImageIndex=-1
Folder=Menus
[HEAD_TEXT]
;
;<style>
;<!--
;
;#slidemenubar, #slidemenubar2{
;position:absolute;
;left:-155px;
;width:160px;
;top:170px;
;border:1.5px solid green;
;background-color:lightyellow;
;layer-background-color:lightyellow;
;font:bold 12px Verdana;
;line-height:20px;
;}
;-->
;</style>
;
[BODY_TEXT]
;
;<script language="JavaScript1.2">
;
;/*
;Sliding Menu Bar Script-
;⌐ Dynamic Drive (www.dynamicdrive.com)
;For full source code, installation instructions,
;100's more DHTML scripts, and Terms Of
;Use, visit dynamicdrive.com
;*/
;
;if (document.all)
;document.write('<div id="slidemenubar2" style="left:-150" onMouseover="pull()" onMouseout="draw()">');
;</script>
;<layer id="slidemenubar" onMouseover="pull()" onMouseout="draw()">
;<script language="JavaScript1.2">
;var sitems=new Array();
;var sitemlinks=new Array();
;
;//extend or shorten this list
;sitems[0]="`caption0`";
;sitemlinks[0]="`link0`";
;
#macro text insert point
;
;
;for (i=0;i<=sitems.length-1;i++)
;document.write('<a href='+sitemlinks[i]+'>'+sitems[i]+'</a><br>');
;</script>
;</layer>
;<script language="JavaScript1.2">
;function regenerate(){
;window.location.reload();
;}
;function regenerate2(){
;if (document.layers)
;setTimeout("window.onresize=regenerate",400);
;}
;window.onload=regenerate2;
;if (document.all){
;document.write('</div>');
;themenu=document.all.slidemenubar2.style;
;rightboundary=0;
;leftboundary=-150;
;}
;else{
;themenu=document.layers.slidemenubar;
;rightboundary=150;
;leftboundary=10;
;}
;function pull(){
;if (window.drawit)
;clearInterval(drawit);
;pullit=setInterval("pullengine()",50);
;}
;function draw(){
;clearInterval(pullit);
;drawit=setInterval("drawengine()",50);
;}
;function pullengine(){
;if (document.all&&themenu.pixelLeft<rightboundary)
;themenu.pixelLeft+=5;
;else if(document.layers&&themenu.left<rightboundary)
;themenu.left+=5;
;else if (window.pullit)
;clearInterval(pullit);
;}
;function drawengine(){
;if (document.all&&themenu.pixelLeft>leftboundary)
;themenu.pixelLeft-=5;
;else if(document.layers&&themenu.left>leftboundary)
;themenu.left-=5;
;else if (window.drawit);
;clearInterval(drawit);
;}
;</script>
;
[MACRO_ITEM]
;sitems[`caption_index`]="`caption`"
;sitemlinks[`link_index`]="`link`"
;
[`caption_index`]
Visible=0
[`link_index`]
Visible=0
[`caption`]
Kind=S
Value=Menu item caption
[`caption0`]
Kind=S
Value=Menu item caption0
[`link`]
Kind=U
Value=Test.htm
[`link0`]
Kind=U
Value=Test0.htm